<template>
  <div style="background: black;opacity: 0.1; ">
  </div>
</template>

<script>
export default {
    data() {
        return {

        }
    },
    mounted() {
        window['getCode'] = data => {
            this.getCode(data);
        }
    },
    methods: {
        getCode(code){
            // alert(code);
            this.$Modal.confirm.show({
                title: '是否领取尾号0006的工卡？',
                content: `<div style="text-align:left;">
                    移动端无法取消领取，<br/>
                    请慎重操作<br/>
                </div>`,
                onConfirm() {
                    console.log('你点击了确定')
                    //扫码
                },
                onCancel() {
                    console.log('你点击了取消')
                },
            })
        }
    }
}
</script>

<style>

</style>